<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>我的项目</title>
<link rel="stylesheet" href="__ROOT__/Public/mcss/css.css">
</head>
<body style="background-color: #f9f9f9;">
<div class="dtop">
	<div class="dtopl" onclick="location.href='{:U('Home/Mobile/Home/my')}'">
		<img class="dtopl_img" src="__ROOT__/Public/images/back.png"/>
	</div>
	<div class="dtopc">项目列表</div>
	<div class="dtopr"></div>
</div>
<ul class="tab">
    <li <?php if($flag=='all'){ ?>class="cur"<?php } ?> onclick="to_order('all')">全部</li>
    <li <?php if($flag=='success'){ ?>class="cur"<?php } ?> onclick="to_order('success')">审核通过</li>
    <li <?php if($flag=='fail'){ ?>class="cur"<?php } ?> onclick="to_order('fail')">审核失败</li>
    <li <?php if($flag=='check'){ ?>class="cur"<?php } ?> onclick="to_order('check')">待审核</li>
</ul>
<div style="height: 100px;"></div>
<div class="listcon on">
	<?php if(empty($list)){ ?>
	<div class="nothing">
		<img src="__ROOT__/Public/images/none.png">
	</div>
	<?php }else{ ?>
	<volist name="list" id="v">
		<div class="list">
			<img class="listl" src="{$v.path}{$v.img}"/>
			<div class="listc">
				<div class="listc1 ellipse1">{$v.title}</div>
				<div class="listc2 ellipse1">周期{$v.cycle}天</div>
				<div class="listc3">项目佣金：<span>{$v.reprice}元</span></div>
			</div>
			<!--<div class="listr">{$v.reprice}元</div>-->
			<div class="list_btm">
				<div class="list_btml"><?php echo date('Y-m-d',$v['add_time']); ?></div>
				<?php if($v['taskid']>0){ ?>
				<?php if($v['status']==0){ ?>
				<div class="list_btmr3">待审核</div>
				<?php }elseif($v['status']==1){ ?>
				<div class="list_btmr1">T0审核</div>
				<?php }elseif($v['status']==2){ ?>
				<div class="list_btmr1">T1审核</div>
				<?php }elseif($v['status']==3){ ?>
				<div class="list_btmr1">T2审核</div>
				<?php }elseif($v['status']==4){ ?>
				<div class="list_btmr1">T3审核</div>
				<?php }elseif($v['status']==5){ ?>
				<div class="list_btmr1">T4审核</div>
				<?php }elseif($v['status']==6){ ?>
				<div class="list_btmr1">T5审核</div>
				<?php }elseif($v['status']==-1){ ?>
				<div class="list_btmr2">审核失败</div>	
				<?php }elseif($v['status']==-2){ ?>
				<div class="list_btmr2">已取消</div>	
				<?php } ?>
				<?php }else{ ?>	
				<?php if($v['status']==0){ ?>
				<div class="list_btmr3">待审核</div>
				<?php }elseif($v['status']==-1){ ?>
				<div class="list_btmr2">审核失败</div>
				<?php }elseif($v['status']==1){ ?>
				<div class="list_btmr1">审核通过</div>
				<?php } ?>
				<?php } ?>	
				<div class="clear"></div>
			</div>
		</div>
	</volist>
	<?php } ?>
</div>
<script src="__ROOT__/Public/js/jquery.min.js"></script>
<script>
function to_order(flag){
	location.href="{:U('Home/Mobile/Order/orderlist')}&flag="+flag;
}
</script>
</body>
</html>
